<template>
	<view>
		<cu-custom isBack bgColor="bg-gradual-blue">
			<block slot="content">参数设置</block>
		</cu-custom>
		<view class="cu-list menu">
			<view @click="open()" class="cu-item margin-top arrow">
				<view class="content">
					<text class="text-grey">发送对码指令</text>
				</view>
			</view>
			<view @click="clone()" class="cu-item arrow">
				<view class="content">
					<text class="text-grey">解除对码指令</text>
				</view>
			</view>

			<navigator url="/pages/help/help" class="cu-item margin-top arrow">
				<view class="content">
					<text class="text-grey">使用帮助</text>
				</view>
			</navigator>
			<view class="cu-item margin-top">
				<view class="content">
					<text class="text-grey">版本: V1.0.1</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import toast from '@/common/toast/index.js'
	import {
		openCode,
		closeCode
	} from "@/common/msg-helper.js"
	export default {
		data() {
			return {};
		},
		methods: {
			open() {
				openCode().then(() => {
					toast.success('发送成功')
				})
			},
			clone() {
				closeCode().then(() => {
					toast.success('发送成功')
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
